﻿@model SalesPortal.Web.Models.EmployeeFilter

<div class="form-group">
    @Html.LabelFor(m => m.LegalName, new { @class = "col-sm-2 control-label" })
    <div class="col-sm-10">
        @Html.EditorFor(model => model.LegalName, new { htmlAttributes = new { @class = "form-control", placeholder = "Contains" } })
    </div>

</div>

<div class="form-group">
    @Html.LabelForModel("Date of Birth", new { @class = "col-sm-2 control-label nowrap" })
    <div class="col-sm-10">
        @Html.LabelFor(model => model.StartDateOfBirth, new { @class = "control-label nowrap" })
        @Html.EditorFor(model => model.StartDateOfBirth, new { htmlAttributes = new { @class = "form-control", placeholder = "Start date" } })
        @Html.LabelFor(model => model.EndDateOfBirth, new { @class = "control-label nowrap" })
        @Html.EditorFor(model => model.EndDateOfBirth, new { htmlAttributes = new { @class = "form-control", placeholder = "End date" } })
    </div>
</div>

<div class="form-group">
    @Html.LabelForModel("Salary", new { @class = "col-sm-2 control-label nowrap" })
    <div class="col-sm-10">
        @Html.LabelFor(model => model.StartSalary, new { @class = "control-label nowrap" })
        @Html.EditorFor(model => model.StartSalary, new { htmlAttributes = new { @class = "form-control", placeholder = "Start salary" } })
        @Html.LabelFor(model => model.EndSalary, new { @class = "control-label nowrap" })
        @Html.EditorFor(model => model.EndSalary, new { htmlAttributes = new { @class = "form-control", placeholder = "End salary" } })
    </div>
</div>

<div class="form-group">
    @Html.LabelFor(m => m.Status, new { @class = "col-sm-2 control-label" })
    <div class="col-sm-10">
        @Html.EditorFor(model => model.Status, new { htmlAttributes = new { @class = "kendo_dropdownlist employee-status" } })
    </div>
</div>

<div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
        <button type="submit" class="btn btn-primary">Apply</button>
        <button type="button" class="btn btn-default" onclick="clearEmployeeFilterForm();">Clear</button>
        <button type="reset" class="btn btn-default">Reset</button>
    </div>
</div>